package reone.android.anytest.Util;

import android.content.Context;
import android.os.Handler;
import android.widget.Toast;

/**
 * Created by wangxingsheng on 16/7/8.
 */

public class ToastUtil {
    public static void talk(final Context context, String... str){
        final StringBuilder sb = new StringBuilder();
        for (String s:str){
            sb.append(str);
        }
        Handler handler = new Handler(context.getMainLooper());
        handler.post(new Runnable() {
            @Override
            public void run() {
                Toast.makeText(context,sb.toString(),Toast.LENGTH_SHORT).show();
            }
        });
    }
}
